package Work;

public class tests {
    public static void main(String[] args) {
        Animal []arr={
                new Dog("小明"),
                new Cat("小莫"),
                new Bird("小英")
        };
        for(int i=0;i<arr.length;i++){
            arr[i].makeSound();
            arr[i].behave();
        }
    }
}
